<template>
  <div>
    <div>{{value}}</div>
    <div style="height:24px"></div>
    <div>
      <Button type="primary" @click="getLocalData">获取缓存中的数据</Button>
    </div>
  </div>
</template>

<script>
export default {
  name: "children",
  data() {
    return {
      value: "123465"
    };
  },
  methods: {
    getLocalData() {
      this.value = localStorage.getItem("data");
    }
  }
};
</script>

<style>
</style>